package com.zkhz.base.domian.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.zkhz.base.common.entity.BaseEntity;
import com.zkhz.base.constant.enums.StatusEnum;
import lombok.Data;

@Data
@TableName(value = "my_user")
public class MyUser extends BaseEntity {
    @TableField
    private String username;
    @TableField
    private String password;
    @TableField
    private String schrodingerCat;
    @TableField
    private String name;
    @TableField(select = false)
    private String title;
    @TableField
    private Integer age;
//    @Version  //乐观锁
//    private Integer version;
    private StatusEnum status = StatusEnum.REST;


    @TableField(exist = false)
    private String gender;
}
